package com.dk.controller;


import com.dk.service.UserService;
import com.dk.vo.UserVO;
import com.dongdongshop.data.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author wbh
 * @since 2023-03-22
 */
@RestController
@RequestMapping("user")
public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping("getUserList")
    public Result getUserList(UserVO userVO) {
        List<UserVO> userVOList = userService.getInfoList(userVO);
        return Result.OK().setData(userVOList);
    }

}

